<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>

<chiptrack:checkLogon sourcePage="/quotation.do"/>
<%@ page import="com.scalar.chiptrack.utils.ConfigManager,
                 com.scalar.chiptrack.sales.forms.quote.QuotationForm,
                 com.scalar.chiptrack.commons.Constants"%>
<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML><HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type=text/css rel=stylesheet>

<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY bgColor="#ffffff" leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">

<SCRIPT language="JavaScript">

    function submitPage(action)
    {
        if(action == 'CONFIRM')
            document.QuotationForm.action.value = "ConfirmQuotation";
        else if(action == 'EDIT')
            document.QuotationForm.action.value = "EditQuotation";

        if ( document.QuotationForm.quotation.value == 'Quotation')
            document.QuotationForm.quotation.value = 0

        document.QuotationForm.submit();
    }


    function showErrorReportPage()
    {
        newWindow = window.open ('<%=chipTracContext%>/reportProblem.do','reportProblem','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=no,width=750,height=400,resizable=no');
        newWindow.focus();
    }

    function showPrintView()
    {
        window.open('changeQuotation.do?action=printView','changeQuotePrintView','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=yes,width=600,height=600,left=100,top=50,resizable=yes');
    }

</SCRIPT>

<!-- Top Header Start-->

    <%
        String userTypeChiptrac = Constants.USER_TYPE_CHIPTRAC + "";
    %>
    <logic:equal value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
        <%@ include file="/jsp/includes/header.jsp" %>
    </logic:equal>
    <logic:notEqual value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
        <%@ include file="/jsp/includes/extHeader.jsp" %>
    </logic:notEqual>

<!-- Top Header End-->

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
	<td width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>

<!-- Side Navigation start -->

<%
    String heading = "";

    if((request.getParameter("isSample") != null) && (request.getParameter("isSample").equals("0")))
    {
         heading = "Sample Order";
    }
    else if((request.getParameter("quotation") != null) && (request.getParameter("quotation").equals("0")))
    {
        heading = "Quote";
    }
    else
    {
        heading = "Sales Order";
    }
%>

        <logic:equal value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
            <%@ include file="/jsp/sales/sales_order_menu.jsp" %> 
        </logic:equal>
        <logic:notEqual value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
            <%@ include file="/jsp/sales/ext_sales_order_menu.jsp" %>
        </logic:notEqual>

<!-- end of the side navigations -->

</TD>

<TD bgcolor="#ffffff">
<IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></TD>
<TD bgcolor="#ffffff"><IMG height=480 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=2></TD>
<TD valign="top" width="100%">

<IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width=500 border=0>
<BR>

<!-- from here your body starts -->

<html:form name="QuotationForm" action="/changeQuotation" method="post" type="com.scalar.chiptrack.sales.forms.QuotationForm">

<input type="hidden" name="quotation" value="<%=heading%>">
<html:hidden name="QuotationForm" property="quotationId" />

<center><span class="NArialW">Change Quote Entry</span></center>
<img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10>

   <table border="0" width="90%" align=right>
   <tr><td colspan=6 class="NArialL"><chiptrack:info styleClass="NArialL"  /></td></tr>
    <tr>
       <td colspan=3 class="NArialL">Click here to <a href='javascript:showPrintView();' onmouseover="window.status='Click to Printable View';return true"  onmouseout="window.status='';return true"> view/print </a>Quote Details</td>
       <td colspan=2 align=right>
        <a href="javascript:submitPage('EDIT');"><img src="<%=chipTracContext%>/jsp/includes/images/edit.gif" onmouseover="window.status='Click to Edit Quote Changes';return true" title="Click here to Edit Quote Changes" onmouseout="window.status='';return true"  border=0></a>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <a href="javascript:submitPage('CONFIRM');"><img src="<%=chipTracContext%>/jsp/includes/images/confirm.gif" onmouseover="window.status='Click to Confirm Quote Changes';return true" title="Click here to Confirm Quote Changes" onmouseout="window.status='';return true"  border='0'></a>
       </td>
       <td>&nbsp;</td>
    </tr>
    <tr><td colspan=6>&nbsp;</td></tr>
    <tr>
	   <td width="21%"><font class="NArialL">Quote No :</font></td>
       <td width="21%" class="bodytext"><b><bean:write name="QuotationForm" property="quotationNo"/></b></td>
       <td width="3%">&nbsp;</td>
       <td width="21%"><font class="NArialL">Customer Name :</font></td>
       <td width="21%" class="bodytext"><b><bean:write name="QuotationForm" property="customerName" /></b></td>
	   <td width="3%">&nbsp;</td>
    </tr>
   <logic:iterate name="screenDisplayFiledsList" id="fieldProperty" type="com.scalar.chiptrack.commons.FieldProperty" indexId="idx">
        <%
            if(idx.intValue()%2==0){
        %>
        <tr>
        <%
            } else {
        %>
            <td width="3%">&nbsp;</td>
        <%
            }
        %>
        <logic:equal value="quoteType" property="fieldName" name="fieldProperty">
            <td width="21%"><font class="NArialL">Quote Type :</font></td>
           <td width="21%" class="bodytext"><b>
            <logic:notEqual value="-1" name="QuotationForm" property="quoteType">
                    <bean:write name="QuotationForm" property="quoteType"/>
            </logic:notEqual>
           </b></td>
        </logic:equal>
        <logic:equal value="application" property="fieldName" name="fieldProperty">
            <td width="21%"><font class="NArialL">
           <logic:equal value="-2" name="QuotationForm" property="application"> Add New Application :</logic:equal>
           <logic:notEqual value="-2" name="QuotationForm" property="application"> Application :</logic:notEqual>
           </font></td>
           <td width="21%" class="bodytext"><b>
            <logic:equal value="-2" name="QuotationForm" property="application">
                <bean:write name="QuotationForm" property="addNewApplication" />
            </logic:equal>
            <logic:notEqual value="-2" name="QuotationForm" property="application">
                <logic:notEqual value="-1" name="QuotationForm" property="application">
                    <bean:write name="QuotationForm" property="application" />
                </logic:notEqual>
            </logic:notEqual>
           </b></td>
        </logic:equal>
        <logic:equal value="projectName" property="fieldName" name="fieldProperty">
           <td width="21%"><font class="NArialL">Project Name :</font></td>
           <td width="21%" class="bodytext"><b>
                    <bean:write name="QuotationForm" property="projectName"/>
           </b></td>
        </logic:equal>
        <logic:equal value="opportunityId" property="fieldName" name="fieldProperty">
            <td width="21%"><font class="NArialL">Opportunity ID :</font></td>
           <td width="21%" class="bodytext"><b>
                    <bean:write name="QuotationForm" property="opportunityId"/>
           </b></td>
        </logic:equal>
        <%
            if(idx.intValue()%2==1){
        %>
           <td width="3%">&nbsp;</td>
        </tr>
        <%
            }
        %>
    </logic:iterate>
    
    <tr>
       <td width="21%"><font class="NArialL">Quote Revision :</font></td>
       <td width="21%" class="bodytext"><bean:write name="QuotationForm" property="revision" /></td>

       <td width="3%">&nbsp;</td>
       <td width="21%">&nbsp;</td>
       <td width="21%">&nbsp;</td>
       <td width="3%">&nbsp;</td>
     </tr>


    <tr>
       <td width="20%"><font class="NArialL"><bean:message key="label.sales.salesOrder.PoRevisionNumber"/> :</font></td>
       <td width="20%" class="bodytext"><bean:write name="QuotationForm" property="poRev" /></td>
       <td width="10%">&nbsp;</td>
       <td width="20%"><font class="NArialL"><bean:message key="label.sales.salesOrder.PoDate"/> :</td>
       <td width="20%" class="bodytext"><bean:write name="QuotationForm" property="poDate" />       </td>
       <td width="2%">&nbsp;</td>
     </tr>
     <tr>
       <td width="20%">&nbsp;</td>
       <td width="20%" class="bodytext">&nbsp;</td>
       <td width="10%">&nbsp;</td>
       <td width="20%"><font class="NArialL"><bean:message key="label.sales.salesOrder.PoExpectedDate"/> :</td>
       <td width="20%" class="bodytext"><bean:write name="QuotationForm" property="expectedPoDate" />       </td>
       <td width="2%">&nbsp;</td>
     </tr>
     <%--<bean:define id="quoteNo" name="QuotationForm" property="quotationNo" type="java.lang.String"/>
     <tr><td colspan=4><font class="NArialL">Please <chiptrack:attachFile fileGroup="Quotation-PO" fileSubGroup="<%=quoteNo%>" formTitle="View Attached Quotation PO" linkText="click here" allowAttach="false" allowDelete="false"/> to View attached PO</font></td></tr>--%>
     <tr>
       <td width="20%"><font class="NArialL"><bean:message key="label.sales.salesOrder.PoNumber"/>:&nbsp;</font></td>
       <td width="20%" class="bodytext"><bean:write name="QuotationForm" property="customerPO" /></td>
       <td width="3%">&nbsp;</td>
       <td width="21%"><font class="NArialL"><bean:message key="label.sales.quotation.contactPerson"/> :</font></td>
       <td width="21%" class="bodytext"><bean:write name="QuotationForm" property="contactPerson" /></td>
       <td width="3%">&nbsp;</td>
     </tr>
     <tr>
       <td width="21%"><font class="NArialL">Phone No :</font></td>
       <td width="21%" class="bodytext"><bean:write name="QuotationForm" property="phoneNumber" /></td>
       <td width="3%">&nbsp;</td>
       <td width="21%"><font class="NArialL">Cell Phone No :</font></td>
       <td width="21%" class="bodytext"><bean:write name="QuotationForm" property="cellNumber" /></td>
	   <td width="3%">&nbsp;</td>
     </tr>
     <tr>
       <td width="21%"><font class="NArialL">Fax No :</font></td>
       <td width="21%" class="bodytext"><bean:write name="QuotationForm" property="faxNumber" /></td>
       <td width="3%">&nbsp;</td>
       <td width="21%"><font class="NArialL">Email :</font></td>
       <td width="21%" class="bodytext"><bean:write name="QuotationForm" property="email" /></td>
       <td width="3%">&nbsp;</td>
     </tr>
     <tr>
       <td width="21%"><font class="NArialL"><bean:message key="label.sales.quotation.salesPerson"/> :</font></td>
       <td width="21%" class="bodytext"><bean:write name="QuotationForm" property="salesPerson" /></td>
       <td width="3%">&nbsp;</td>
       <td width="21%"><font class="NArialL"><bean:message key="label.sales.salesRep.Name"/> :</font></td>
       <td width="21%" class="bodytext"><bean:write name="QuotationForm" property="salesRep" /></td>
       <td width="3%">&nbsp;</td>
     </tr>

     <tr>
       <td width="21%"><font class="NArialL"><bean:message key="label.sales.salesOrder.ShippingMethod" /> :</font></td>
       <td width="21%" class="bodytext">
	    <logic:notEqual name="QuotationForm" property="shippingMethod" value="-1">
            <bean:write name="QuotationForm" property="shippingMethod" /></td>
       </logic:notEqual>
       <%-- <td width="21%"><font class="NArialL">Shipping Account</font></td>
       <td width="21%" class="bodytext"><bean:write name="QuotationForm" property="shippingAccount" /></td> --%>
       <td width="3%">&nbsp;</td>
       <td width="21%"><font class="NArialL"><bean:message key="label.sales.quotation.regionalRep"/> : </font></td>
       <td width="21%" class="bodytext"><bean:write name="QuotationForm" property="regionalRep" /></td>
       <td width="3%">&nbsp;</td>
     </tr>
	<tr>
		<logic:equal value="-2" name="QuotationForm" property="endCustomerId">
        <td width="21%" class="NArialL"> 
			New <bean:message key="label.sales.endUser"/> :
		</td>
        <td width="21%" class="bodytext">
			<bean:write name="QuotationForm" property="newEndUserName"  />
		</td>
		</logic:equal>
		<logic:notEqual value="-2" name="QuotationForm" property="endCustomerId">
        <td width="21%" class="NArialL">
			<bean:message key="label.sales.endUser"/> :
		</td>
        <td width="21%" class="bodytext">
			<bean:write name="QuotationForm" property="endCustomer"  />
		</td>
		</logic:notEqual>
		<td width="3%">
			&nbsp;
		</td>
        <logic:equal value="-2" name="QuotationForm" property="odmId">
        <td width="27%" class="NArialL"> 
			New <bean:message key="label.sales.shipToCustomer"/>
		</td>
        <td width="21%" class="bodytext">
			<bean:write name="QuotationForm" property="newEndCustomerName" />
		</td>
        </logic:equal>
        <logic:notEqual value="-2" name="QuotationForm" property="odmId">
		<td width="27%" class="NArialL">
			<bean:message key="label.sales.shipToCustomer"/>
		</td>
        <td width="21%" class="bodytext">
			<bean:write name="QuotationForm" property="odm" />
		</td>
        </logic:notEqual>
		<td width="3%">
			&nbsp;
		</td>
	</tr>
    <%-- <tr>
       <td width="21%"><font class="NArialL"><bean:message key="label.sales.endUser"/></font></td>
       <td width="21%" class="bodytext"><bean:write name="QuotationForm" property="endCustomer"/></td>
       <td width="3%">&nbsp;</td>
       <td width="21%"><font class="NArialL"><bean:message key="label.sales.shipToCustomer"/></font></td>
       <td width="21%" class="bodytext"><bean:write name="QuotationForm" property="odm" /></td>
       <td width="3%">&nbsp;</td>
     </tr>--%>
	<tr>
		<td width="21%" class="NArialL">
			Pay Terms :
		</td>
		<td width="21%" class="bodytext">
			<bean:write name="QuotationForm" property="shippingTerms"  />
		</td>
		<td width="3%">&nbsp;</td>
		<td width="21%" class="NArialL">
			<bean:message key="label.sales.salesOrder.DeliveryTerms" /> :
		</td>
		<td width="21%" class="bodytext">
			<bean:write name="QuotationForm" property="deliveryTerms" />
		</td>
		<td width="3%">&nbsp;</td>
	</tr>
    <tr>
		<td width="3%" class="NArialL">
			&nbsp;
		</td>
		<td width="21%" class="bodytext">
			&nbsp;
		</td>
		<td width="3%">
			&nbsp;
		</td>
		<td width="21%" class="NArialL">
			Quote Date :
		</td>
		<td width="21%" class="bodytext">
			<bean:write name="QuotationForm" property="quotationDate" />
		</td>
		<td width="3%">
			&nbsp;
		</td>
	</tr>
    <tr>
		<td width="21%" valign="top" class="NArialL">
			Billing Address :
		</td>
		<td width="21%" class="bodytext">
			<%--<bean:write name="QuotationForm" property="billingAddress"/> --%>
			<% QuotationForm quotationForm = (QuotationForm) session.getAttribute("QuotationForm");%>
			<%= quotationForm.getBillingAddressAsHTML()%>
		</td>
		<td width="3%">
			&nbsp;
		</td>
		<td width="21%" valign="top" class="NArialL">
			Shipping Address :
		</td>
		<td width="21%" class="bodytext">
			<%--<bean:write name="QuotationForm" property="shippingAddress"  /> --%>
			<%= quotationForm.getShippingAddressAsHTML()%>
		</td>
		<td width="3%">
			&nbsp;
		</td>
	</tr>
    <tr><td colsapn=6><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
    <tr>
		<td width="21%"><font class="NArialL">Freight Instructions :</font></td>
		<td width="21%" class="bodytext"><bean:write name="QuotationForm" property="freightInstructions"/></td>
		<td width="3%">&nbsp;</td>
		<td width="21%"><font class="NArialL">Shipping Instructions :</font></td>
		<td width="21%" class="bodytext"><bean:write name="QuotationForm" property="shippingInstructions" /></td>
		<td width="3%">&nbsp;</td>
	</tr>
    <tr><td colspan=6><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=20></td></tr>
	<tr>
		<td width="21%"><font class="NArialL">Quotation Expires On :</font></td>
		<td width="21%" class="bodytext"><bean:write name="QuotationForm" property="expiryDate"/></td>
		<td width="3%">&nbsp;</td>
		<td width="21%">&nbsp;</td>
		<td width="21%">&nbsp;</td>
		<td width="3%">&nbsp;</td>
	</tr>
    <tr>
		<td width="21%" class="NArialL">Comments :</td>
		<td width="79%" class="bodytext" colspan="5">
			<bean:write name="QuotationForm" property="comments"/>
		</td>
    </tr>
    <tr>
		<td width="21%">&nbsp;</td>
		<td width="21%">&nbsp;</td>
		<td width="3%">&nbsp;</td>
		<td width="21%">&nbsp;</td>
		<td width="21%">&nbsp;</td>
		<td width="3%">&nbsp;</td>
	</tr>
    <tr><td colspan=6><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=20></td></tr>

     <tr><td colspan=6>
     <% int additionalColumns = 0; %>
       <table border="0" width="95%">
	 <tr>
	    <td width="8%" align="center" bgcolor="#993333" class="NArialL"><font color="#FFFFFF">Line Item</font></td>
        <td width="8%" align="center" bgcolor="#993333" class="NArialL"><font color="#FFFFFF">PO Line Item</font></td>
	    <td width="20%" align="center" bgcolor="#993333" class="NArialL"><font color="#FFFFFF"><bean:message key="label.mfgPartNumber" /></font></td>
        <td width="20%" align="center" bgcolor="#993333" class="NArialL"><font color="#FFFFFF"><bean:message key="label.customerPartNumber"/></font></td>
        <td width="20%" align="center" bgcolor="#993333" class="NArialL"><font color="#FFFFFF">Description</font></td>
        <td width="1%" align=center bgcolor="#993333" class="NArialL"><font color="#FFFFFF">Taxable</font></td>
        <td width="15%" align="center" bgcolor="#993333" class="NArialL"><font color="#FFFFFF">Lead Time</font></td>
        <td width="15%" align="center" bgcolor="#993333" class="NArialL"><font color="#FFFFFF">Req'd Dock Date</font></td>
        <td width="5%" align="center" bgcolor="#993333" class="NArialL"><font color="#FFFFFF">Quantity</font></td>
        <%
            if(ConfigManager.isShowQuoteMinOrderQty()) {
                additionalColumns++;
        %>
            <td width="5%" align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">Min Order Quantity</font></font></td>
        <%
            }
        %>
        <logic:equal value="true" name="QuotationForm" property="distributor">
            <%
                if ( ConfigManager.isShowQuoteRequestedPrice() )
                {
                    additionalColumns++;
            %>
                    <td width="10%" align="center" bgcolor="#993333" class="NArialL"><font color="#FFFFFF"><bean:message key="label.sales.requestedPrice"/></font></td>
            <%
                }
                if ( ConfigManager.isShowQuoteCustResalePrice() )
                {
                    additionalColumns++;
            %>
                    <td width="10%" align="center" bgcolor="#993333" class="NArialL"><font color="#FFFFFF"><bean:message key="label.sales.customerResalePrice"/></font></td>
            <%
                }
            %>
        </logic:equal>
        <td width="10%" align="center" bgcolor="#993333" class="NArialL"><font color="#FFFFFF"><bean:message key="label.sales.price"/></font></td>
        <logic:equal value="true" name="QuotationForm" property="distributor">
            <%
                if ( ConfigManager.isShowQuoteSuggResalePrice() )
                {
                    additionalColumns++;
            %>
                    <td width="10%" align="center" bgcolor="#993333" class="NArialL"><font color="#FFFFFF"><bean:message key="label.sales.suggestedResalePrice"/></font></td>
            <%
                }
            %>
        </logic:equal>
        <td width="15%" align="center" bgcolor="#993333" class="NArialL"><font color="#FFFFFF">Amount</font></td>
        <logic:equal value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
            <td width="10%" align='center' bgcolor='#993333' class='NArialL'><font color="#FFFFFF">Cancel</font></td>
        </logic:equal>
      </tr>
<logic:iterate id="myHashMap" name="lineItemsWithSubtotals">
    <logic:iterate id="lineItemList" name="myHashMap" >
          <logic:iterate id="LineItem" name="lineItemList" property="key" type="com.scalar.chiptrack.sales.LineItem">
          <html:hidden property="isApproved" name="LineItem"/>
      <tr>
	    <td width="8%" bgcolor="#DEE1E2" class="bodytext" align=center><bean:write name="LineItem" property="lineItemNo" /></td>
        <td width="8%" bgcolor="#DEE1E2" class="bodytext" align=center><bean:write name="LineItem" property="poLineItemNo" /></td>
	    <td width="20%" bgcolor="#DEE1E2" class="bodytext" align=center><bean:write name="LineItem" property="manufacturingPartNo"/></td>
        <td width="20%" bgcolor="#DEE1E2" class="bodytext" align=center>
            <logic:equal value="-2" name="LineItem" property="customerPartNo">
                <bean:write name="LineItem" property="newCustomerPartNo"/>
            </logic:equal>
            <logic:notEqual value="-2" name="LineItem" property="customerPartNo">
                <bean:write name="LineItem" property="customerPartNo"/>
            </logic:notEqual>
        <td width="1%" bgcolor="#DEE1E2" class="bodytext" align=center><bean:write name="LineItem" property="lineItemDescription"/></td>
        <td width="1%" bgcolor="#DEE1E2" class="bodytext" align=center><bean:write name="LineItem" property="isTaxableAsString"/></td>
        <td width="8%" bgcolor="#DEE1E2" class="bodytext" align=right>
                <logic:notEqual value="0" name="LineItem" property="leadTime">
                    <bean:write name="LineItem" property="leadTime"/>
                 </logic:notEqual>
        </td>
        <td width="15%" bgcolor="#DEE1E2" class="bodytext" align=center><bean:write name="LineItem" property="requestDate"/></td>
        <td width="5%" bgcolor="#DEE1E2" class="bodytext" align=right><bean:write name="LineItem" property="qtyAsString"/></td>
        <%
            if(ConfigManager.isShowQuoteMinOrderQty()) {
        %>
            <td width="5%" bgcolor="#DEE1E2" class="bodytext" align=right><bean:write name="LineItem" property="minOrderQtyAsString"/></td>
        <%
            }
        %>
        <logic:equal value="true" name="QuotationForm" property="distributor">
        <%
            if ( ConfigManager.isShowQuoteRequestedPrice() )
            {
        %>
                <td width="10%" bgcolor="#DEE1E2" class="bodytext" align=right><bean:write name="LineItem" property="reqPriceAsString"/></td>
        <%
            }
            if ( ConfigManager.isShowQuoteCustResalePrice() )
            {
        %>
                <td width="10%" bgcolor="#DEE1E2" class="bodytext" align=right><bean:write name="LineItem" property="custResaleAsString"/></td>
        <%
            }
        %>
        </logic:equal>
        <td width="10%" bgcolor="#DEE1E2" class="bodytext" align=right><bean:write name="LineItem" property="unitPriceAsString"/></td>
        <logic:equal value="true" name="QuotationForm" property="distributor">
            <%
                if ( ConfigManager.isShowQuoteSuggResalePrice() )
                {
            %>
                    <td width="10%" bgcolor="#DEE1E2" class="bodytext" align=right><bean:write name="LineItem" property="suggResaleAsString"/></td>
            <%
                }
            %>
        </logic:equal>
        <td width="15%" bgcolor="#DEE1E2" class="bodytext" align=right><bean:write name="LineItem" property="amountAsString"/></td>
        <logic:equal value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
               <td bgcolor="#DEE1E2" align="center" class="bodytext">
                <logic:equal name="LineItem" property="isCancel" value="true" >
                    Yes
                </logic:equal>
                <logic:equal name="LineItem" property="isCancel" value="false" >
                    No
                </logic:equal>
               </td>
        </logic:equal>
     </tr>
     </logic:iterate>
        <tr>
            <bean:define id="subTotal" name="lineItemList" property="value" type="com.scalar.chiptrack.sales.SubTotal"/>
            <td colspan="8" width="15%" bgcolor="#FFFFFF" class="NArialL" align="right">Sub Total</td>
            <td colspan="1" width="15%" bgcolor="#FFFFFF" class="NArialL" align="right"><bean:write name="subTotal" property="subTotalQty" /></td>
            <td>&nbsp;</td>
            <td colspan="<%=(1+additionalColumns)%>" width="15%" bgcolor="#FFFFFF" class="NArialL" align="right">
                <bean:write name="subTotal" property="subTotalAmt" />
            </td>
        </tr>
     </logic:iterate>
</logic:iterate>

    <tr><td colspan=10>&nbsp;</td></tr>
    <tr>
        <td></td>
        <td colspan=7 class="NArialL" align="center"></td>
        <td bgcolor="#DEE1E2" class="NArialL" align="right"><bean:write name="QuotationForm" property="totalQty" /></td>
        <td class="NArialL" align="right" colspan="<%=(1+additionalColumns)%>">Total</td>
        <td bgcolor="#DEE1E2" class="NArialL" align="right"><bean:write name="QuotationForm" property="subTotalAsString" /></td>
     </tr>
     <tr>
        <td></td>
        <td colspan=5 width="35%"class="NArialL" align=right>Sales Tax State</td>
        <td width="15%" class="NArialL" align=right>
            <html:select name="QuotationForm" property="salesTaxType" styleClass="txfield" disabled= "true">
                <html:option value="0">Non Taxable</html:option>
                <html:options collection="salesTaxes" property="value" labelProperty="label" />
            </html:select>
        </td>
	    <td  colspan="<%=(3+additionalColumns)%>" width="35%" align=right class="NArialL">Sales Tax</td>
        <td width="15%" bgcolor='#DEE1E2' class="NArialL" align="right"><bean:write name="QuotationForm" property="salesTaxAsString" /></td>
     </tr>
    <tr>
        <td></td>
        <td colspan="<%=(9+additionalColumns)%>" align=right class="NArialL">Freight</td>
        <td bgcolor='#DEE1E2' class="NArialL" align="right"><bean:write name="QuotationForm" property="frieghtAsString" /></td>
     </tr>
    <tr>
        <td></td>
        <td colspan="<%=(9+additionalColumns)%>" align=right class="NArialL"><bean:write name="QuotationForm" property="miscName"/></td>
        <td bgcolor='#DEE1E2' class="NArialL" align="right"><bean:write name="QuotationForm" property="miscAsString" /></td>
     </tr>
    <tr>
        <td></td>
        <td colspan="<%=(9+additionalColumns)%>" align=right class="NArialL">Order Total</td>
        <td bgcolor='#DEE1E2' class="NArialL" align="right"><bean:write name="QuotationForm" property="orderTotalAsString" /></td>
     </tr>
   </table>
   </table>
    </table>
<html:hidden property="customerName" />
<html:hidden property="customerId" />
<input type="hidden" name="action" value="">
<input type="hidden" name="hdnShippingMethodName" value="<bean:write name="QuotationForm" property="shippingMethod" />" >
<input type="hidden" name="hdnshippingAccount" value="<bean:write name="QuotationForm" property="shippingAccount" />" >
<input type="hidden" name="isSample" value="<%=request.getParameter("isSample")%>">
<input type="hidden" name="shipAccount1" value="<bean:write name="QuotationForm" property="shippingMethod" />"/>
<html:hidden name="QuotationForm" property="revision" />
</html:form>

<!-- till here -->

<BR><BR><BR></TD>
<TD bgcolor="#ffffff"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
</TR>
</TABLE>


<!-- Footer starts here -->

<%@ include file="/jsp/includes/footer.jsp" %>

<!-- footer end here -->

</BODY>
</HTML>
